package com.nmsl.masterdocker.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nmsl.domain.TyEmployee;
import com.nmsl.domain.TyPatient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 治疗方案对象 cure
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Cure extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 治疗方案的id */
    @Setter
    @Excel(name = "治疗方案的id")
    private Long cureId;

    /** 员工id（员工表） */
    @Excel(name = "员工id", readConverterExp = "员=工表")
    private Long doctorId;

    /** 患者id（患者表） */
    @Excel(name = "患者id", readConverterExp = "患=者表")
    private Long patientId;

    /** 医生医嘱 */
    @Excel(name = "医生医嘱")
    private String doctorMessage;

    /** 住院登记表 */
    @Excel(name = "住院登记表")
    private Long registrationId;

    /** 治疗时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "治疗时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cureTime;

    //治疗方案中有多个处方信息
    private List<TyPrescriptionInfo> tyPrescriptionInfoList;

    //患者信息
    private TyPatient tyPatient;

    //医生信息
    private TyEmployee tyEmployee;

    //住院登记表
    private TyHospitalizationRegistration tyHospitalizationRegistration;
}
